Page({
  data: {
    showUrl: "",
    canUse: true,
  },
  onLoad({platform}) {
    let app = getApp()
    app.setShareChannel(platform)
    // 无芝麻分 也可租机
    let time = new Date().getTime()
    this.data.showUrl = `https://www.ddzuji.cn/topic/alipay/h5/noSesameRentMachine/index.html#/?id=${time}`;
  },

  onUnload() {
    let pages = getCurrentPages(); // 当前页面
    let beforePage = pages[pages.length - 2]; // 上一页

    if(beforePage) {
      // beforePage.jumpNoSesameRentMachine()
      beforePage.setData({
        noJumpH5Page: true
      })
    }
  },
 
  onMessage() {

  }
});
